package com.fuluwa.domain.category.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.fuluwa.domain.category.model.Category;

@Repository(value = "categoryDao")
public interface CategoryRepository extends JpaRepository<Category, Long>, CrudRepository<Category, Long> {

	List<Category> findByParent(long parent);

	List<Category> findById(long cid);

	List<Category> findByIdIn(List<Long> cid);
	
}
